package com.hsjk.szwj.module.train.dal.mysql.question;

import com.hsjk.szwj.framework.mybatis.core.mapper.BaseMapperX;
import com.hsjk.szwj.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.hsjk.szwj.module.train.dal.dataobject.question.QuestionTagDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/19 00:44
 **/
@Mapper
public interface IQuestionTagMapper extends BaseMapperX<QuestionTagDO> {
    default QuestionTagDO getTagByCode(String code) {
        return selectOne(new LambdaQueryWrapperX<QuestionTagDO>()
                .eq(QuestionTagDO::getTagCode, code));
    }
}
